package com.biodiv.community.utils;

import com.biodiv.community.base.PageResult;

/**
 * @author: tianquan
 * @date: 2025-06-29  10:11
 * @description: page to PageVO
 */
public class PageUtils {

    public static <T> PageResult<T> toPageVO(com.baomidou.mybatisplus.extension.plugins.pagination.Page<T> page) {
        return new PageResult(page.getTotal(), page.getPages(), page.getRecords());
    }

}
